
def common_assert(case,response,status_code,success,code,message):

    case.assertEqual(status_code, response.status_code)
    case.assertEqual(success, response.json().get("success"))
    case.assertEqual(code, response.json().get("code"))
    case.assertIn(message, response.json().get("message"))
#common_assert(self, response, 200, True, 10000, "操作成功")
#common_assert(self, response)  # 直接使用公共断言方法的默认值即